package top.mengchaob.deploy.jpa;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import top.mengchaob.deploy.table.HostServerDO;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;
import java.util.Map;

/**
 * @title：
 * @author: mengchaob
 * @date: 2021年04月27日 15:53
 * @description:
 */
public interface HostServerRepository extends JpaRepository<HostServerDO, String> {
    @Modifying
    @Query("DELETE FROM HostServerDO u WHERE u.id in ?1")
    @Transactional
    public int deleteByIds(List<String> ids);
}
